import java.util.Scanner;

public class Ex3_26{
	public static void main(String[] args){
		Scanner input = new Scanner(System.in);
		System.out.print("Enter a integer: ");
		int x = input.nextInt();
		boolean divBy5 = x % 5 == 0;
		boolean divBy6 = x % 6 == 0;
		System.out.printf("Is %d divisible by 5 and 6? %b\n", x, divBy5 && divBy6);
		System.out.printf("Is %d divisible by 5 or 6? %b\n", x, divBy5 || divBy6);
		System.out.printf("Is %d divisible by 5 or 6, bu not both? %b\n", x, divBy5 ^ divBy6);
	}
}